/**
 * @developer：MR·Feng
 * 封装鉴权login
 */

import { Redirect } from 'umi';
import { useAuth } from '@/utils/datas';
import Cookies from 'react-cookies';

export default (props) => {
    const isLogin = true;
    // const { isLogin } = useAuth(true);
    if (isLogin) {
        return <>{props.children}</>;
    } else {
        return <Redirect to="/login" />;
    }
};
